package gwtI18nEditor.widgets;

import gwtI18nEditor.resources.ImageLibrary;

import java.awt.event.ActionListener;

import javax.swing.JButton;

@SuppressWarnings("serial")
public class IconButton extends JButton {

	public IconButton(String icon, String toolTip, ActionListener listener, String actionCommand) {
        super();
        setToolTipText(toolTip);
        setIcon(ImageLibrary.get(icon));
        setActionCommand(actionCommand);
        setFocusable(false);
        addActionListener(listener);
    }
}
